<link href="<?php echo base_url()?>common/css/public.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="<?php echo base_url()?>common/kindeditor/themes/default/default.css" />
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/layer/layer.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.form.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.validate.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.metadata.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.validate.messages_cn.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/validate.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/validateForm.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>common/js/jquery.Msg.js"></script>

<script>
    $(function () {
        var index = parent.layer.getFrameIndex(window.name);
        $(".not").click(function () {
            parent.layer.close(index);
        });
    })
    function Success(data) {
        parent.Success(data);

    }

    $(function () {
        $.validate_message('ajax_form');
    });

</script>
<div id="dcMain" style="margin-left:0;padding-top:10px;">
    <!-- 当前位置 -->
    <div id="manager" class="mainBox" style="padding-top:0;">

        <form id="ajax_form" method="post" action="<?php echo site_url('admin/message/edit_message')?>?returnurl=<?php echo $this->input->get('returnurl')?>">
         
            <input type="hidden" value="<?php echo date('Y-m-d')?>" name="adddate" />
            <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">

                <tr>
                    <td width="100" align="right">名称</td>
                    <td>
                        <input type="text" id="name" readonly="readonly" name="name" size="40" class="inpMain" value="<?php echo !empty($messageModel)?$messageModel->name:""?>" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right">电话</td>
                    <td>
                        <input type="text" id="tel" readonly="readonly" name="tel" size="40" class="inpMain" value="<?php echo !empty($messageModel)?$messageModel->tel:""?>" />
                    </td>
                </tr>
                <tr>
                    <td width="100" align="right">留言内容</td>
                    <td>
                        <textarea style="resize:none;height:150px;width:500px;" readonly="readonly" id="content" name="content"><?php echo $messageModel->content?></textarea>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <input name="button" class="btn not" type="button" value="取消">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
